export function apiDeepSeekChat(messages: any[]) {
    return new Promise<string>((resolve, reject) => {
      uni.request({
        url: "https://api.combinecalculate.cn/api/deepseek/chat",
        method: "POST",
        data: { messages },
        success: (res) => {
          if (res.statusCode === 200) {
            resolve(res.data.reply);
          } else {
            reject(res.data);
          }
        },
        fail: (err) => {
          reject(err);
        }
      });
    });
  }